use std::str;

use bevy::prelude::{Component, Deref, DerefMut};
use nalgebra::Vector2;

use crate::board;


#[derive(Component)]
pub struct Board {
    pub board: board::Board,
    pub tile_size: Vector2<u32>,
}


#[derive(Component)]
pub struct MainCamera {
    pub target_scale: f32,
}

impl Default for MainCamera {
    fn default() -> Self {
        Self { target_scale: 1.0 }
    }
}

#[derive(Component)]
pub struct Hud;


#[derive(Component)]
pub struct Player;

#[derive(Default,Component,Deref,DerefMut)]
pub struct AnimationState(benimator::State);